﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GraphApiExplorer.aspx.cs" Inherits="FacebookApp.GraphApiExplorer" MasterPageFile="~/PublicInterface/Home.Master" %>
<%@ Register src="UserControl/MsgUC.ascx" tagname="MsgUC" tagprefix="uc1" %>

<asp:Content ID="cBody" ContentPlaceHolderID="cphBody" runat="server">
    <asp:UpdatePanel ID="uplRequest" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <uc1:MsgUC ID="MsgUC1" runat="server" /><br />
            <asp:UpdateProgress ID="upsRequest" runat="server">
                <ProgressTemplate>
                    <img src="http://va1en.sftcdn.net/shared/img/interface/loader_bar.gif" alt="please wait" />
                </ProgressTemplate>
            </asp:UpdateProgress>
            <div class="input-group">
                <span class="input-group-addon">AccessToken:</span>
                <asp:TextBox ID="txtAccessToken" runat="server" CssClass="form-control" required placeholder="Mời nhập AccessToken"></asp:TextBox>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">AppId:</span>
                <asp:TextBox ID="txtAppId" runat="server" CssClass="form-control" required placeholder="Mời nhập AppId"></asp:TextBox>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">AppSecret:</span>
                <asp:TextBox ID="txtAppSecret" runat="server" CssClass="form-control" required placeholder="Mời nhập AppSecret"></asp:TextBox>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">Version:</span>
                <asp:DropDownList ID="ddlVersion" runat="server" CssClass="form-control" required placeholder="Mời nhập Version">
                    <asp:ListItem Text="v2.0" Value="v2.0"></asp:ListItem>
                    <asp:ListItem Text="v2.1" Value="v2.1"></asp:ListItem>
                    <asp:ListItem Text="v2.2" Value="v2.2"></asp:ListItem>
                    <asp:ListItem Text="v2.3" Value="v2.3"></asp:ListItem>
                    <asp:ListItem Text="v2.4" Value="v2.4"></asp:ListItem>
                    <asp:ListItem Text="v2.5" Value="v2.5"></asp:ListItem>
                </asp:DropDownList>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">Type:</span>
                <asp:DropDownList ID="ddlType" runat="server" CssClass="form-control" required placeholder="Mời nhập Type">
                    <asp:ListItem Text="Get" Value="0"></asp:ListItem>
                    <asp:ListItem Text="Post" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Delete" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">Query:</span>
                <asp:TextBox ID="txtQuery" runat="server" CssClass="form-control" required placeholder="Mời nhập Query"></asp:TextBox>
            </div>
            <br />
            <asp:Button ID="btnGet" runat="server" CssClass="btn btn-info" Text="GET" OnClick="btnGet_Click" />
            <br />
            <div class="input-group">
                <span class="input-group-addon">Result:</span>
                <asp:TextBox ID="txtResult" runat="server" TextMode="MultiLine" ReadOnly="true" Rows="5" CssClass="form-control" placeholder="Mời nhập Query"></asp:TextBox>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
